home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_10 / saks / whitesth.c < prev   
Encoding:
Text File  |  1995-08-03  |  318 b   |  24 lines

  1. Listing 4 - Examples of the Whitesmiths
  2. indenting style applied to C/C++ if-else
  3. and while statements.
  4.  
  5. if (expression)
  6.     {
  7.     statement;
  8.     statement;
  9.     ...
  10.     }
  11. else
  12.     {
  13.     statement;
  14.     statement;
  15.     ...
  16.     }
  17.  
  18. while (expression)
  19.     {
  20.     statement;
  21.     statement;
  22.     ...
  23.     }
  24.